//package com.plian.system.controller.fr.evaluation;
//
//
//import com.plian.Tools.FileTools;
//import com.plian.Tools.Func;
//import com.plian.Tools.StringPool;
//import com.plian.Tools.pagedata.PageData;
//import com.plian.system.entity.fr.evaluation.AssetEvaluationReport;
//import com.plian.system.model.ListResult;
//import com.plian.system.model.R;
//import com.plian.system.model.token.PassToken;
//import com.plian.system.mybatis.support.Query;
//import com.plian.system.service.fr.evaluation.IAssetEvaluationReportService;
//import com.plian.system.vo.fr.evaluation.AssetEvaluationReportVO;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import lombok.RequiredArgsConstructor;
//import org.apache.commons.lang3.StringUtils;
//import org.springframework.core.io.FileSystemResource;
//import org.springframework.http.ResponseEntity;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
///**
// * <p>
// * 资产评估报备 前端控制器
// * </p>
// *
// * @author hu song
// * @since 2023-03-22 19:08:36
// */
//@RestController
//@RequestMapping("/api/assetEvaluationReport")
//@Api(tags = "资产评估报备控制器")
//@RequiredArgsConstructor
//public class AssetEvaluationReportController {
//
//    private final IAssetEvaluationReportService assetEvaluationReportService;
//
//    @ApiOperation("分页查询")
//    @PostMapping("/list")
//    public ListResult<AssetEvaluationReportVO> list(@RequestBody Query query) {
//        return assetEvaluationReportService.findAll(query);
//    }
//
//    @ApiOperation("详情")
//    @PostMapping("/detail")
//    public R<AssetEvaluationReportVO> detail(@RequestBody AssetEvaluationReport assetEvaluationReport) {
//        return R.data(assetEvaluationReportService.detail(assetEvaluationReport));
//    }
//
//    @ApiOperation(value = "新增或修改")
//    @PostMapping("/submit")
//    public R submit(@Validated @RequestBody AssetEvaluationReport assetEvaluationReport) {
//        return assetEvaluationReportService.saveOrUpdate(assetEvaluationReport) ? R.data(assetEvaluationReport) : R.fail();
//    }
//
//    @ApiOperation(value = "批量删除")
//    @PostMapping("/remove")
//    public R remove(@RequestBody PageData pd) {
//        List<String> ids = (List<String>) pd.get("ids");
//        return assetEvaluationReportService.deleteLogic(Func.toLongList(StringUtils.join(ids, StringPool.COMMA))) ? R.success() : R.fail();
//
//    }
//
//    @ApiOperation(value = "保存审核信息")
//    @PostMapping("/saveAuditInfo")
//    public R addAuditInfo(@RequestBody AssetEvaluationReport assetEvaluationReport) {
//        return assetEvaluationReportService.saveAuditInfo(assetEvaluationReport) ? R.success() : R.fail();
//    }
//
//    @PostMapping("/exportPdf")
//    @PassToken
//    @ApiOperation(value = "详情pdf")
//    public ResponseEntity<FileSystemResource> exportPdf(@RequestBody AssetEvaluationReport assetEvaluationReport) {
//        return FileTools.exportPdf(assetEvaluationReportService.exportPdf(assetEvaluationReport));
//    }
//}
//
